import request from '@/utils/request';

export const getDicts = params => {
  return request({
    url: '/steel-arch/client/dict/data/list',
    params: params,
    method: 'get',
  });
};

// 库存列表查询
export const getInventoryList = params => {
  return request({
    url: '/steel-arch/client/inv/list',
    params: params,
  });
};

// 产品品出库
export const outInventory = params => {
  return request({
    url: '/steel-arch/client/inv/out',
    data: params,
    method: 'post',
  });
};

// 商品出入库列表查询
export const getInventoryLogList = params => {
  return request({
    url: '/steel-arch/client/inv/recordList',
    params: params,
  });
};
export const getInventoryNewList = params => {
  return request({
    url: '/steel-arch/material/in/list',
    params: params,
  });
};

export const getOutNewList = params => {
  return request({
    url: '/steel-arch/material/out/list',
    params: params,
  });
};